Skip to content

Method: static {...}

1: /*
2: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.jopa.model;
19:
20: import java.net.URI;
21: import java.net.URL;
22: import java.util.Set;
23:
24: public class PersistenceProperties {
25:
26: /**
27: * Persistence provider class configuration parameter.
28: * <p>
29: * This is the configuration parameter whose value is used by {@link cz.cvut.kbss.jopa.Persistence} to instantiate
30: * the persistence provider for a persistence unit.
31: */
32: public static final String JPA_PERSISTENCE_PROVIDER = "cz.cvut.kbss.jopa.model.PersistenceProvider";
33:
34: /**
35: * Supported identifier Java types.
36: * <p>
37: * This set represents the Java types that can be used as entity identifiers or as {@link
38: * cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty} property values.
39: */
40: public static final Set<Class<?>> IDENTIFIER_TYPES = Set.of(URI.class, URL.class, String.class);
41:
42: PersistenceProperties() {
43: throw new AssertionError();
44: }
45: }